/* 简洁的企业级标签页组件 */
.app-tabs-container {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.1s ease;
}

.app-tabs-wrapper {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    min-height: 40px;
}

.app-tabs-list {
    display: flex;
    flex: 1;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-tabs-list::-webkit-scrollbar {
    display: none;
}

.chrome-tab {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 6px 6px 0 0;
    padding: 6px 12px;
    min-width: 120px;
    max-width: 200px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: -1px;
}

.chrome-tab:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
}

.chrome-tab.chrome-tab-current {
    background: var(--bg-white);
    border-color: var(--primary-color);
    border-bottom: 1px solid var(--bg-white);
    z-index: 10;
}

.chrome-tab-content {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.chrome-tab-favicon {
    font-size: 14px;
    flex-shrink: 0;
    line-height: 1;
}

.chrome-tab-title {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.chrome-tab-close {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    flex-shrink: 0;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 12px;
}

.chrome-tab-close:hover {
    background: var(--danger-color);
    color: white;
}

.app-tabs-actions {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.app-tab-add-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    cursor: pointer;
    font-size: 14px;
}

.app-tab-add-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .app-tabs-wrapper {
        padding: 0 0.5rem;
    }
    
    .chrome-tab {
        min-width: 100px;
        max-width: 150px;
        padding: 4px 8px;
    }
    
    .chrome-tab-title {
        font-size: 12px;
    }
    
    .app-tab-add-btn {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
}
